package cn.leyou.client;

import cn.leyou.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ctrl+shift+c 复制类的全路径
 * @version 1.0.0
 * @Author yong.Mr
 * @data 2019-8-9
 */
@FeignClient(value = "service-provider",fallback = UserClientlmpl.class)
public interface UserClient {

    @GetMapping("provider/user/{id}")
    public User queryUserById(@PathVariable("id") long id);
}
